package com.zb.common.utils;

import javax.servlet.http.HttpSession;

import com.zb.common.po.model.SessionUser;


public class SessionUserUtil {
    public static SessionUser getSessionUser(HttpSession session) {
        Object obj = session.getAttribute(Constants.SESSION_KEY);
        if (obj == null) {
            return null;
        } else {
            return (SessionUser) obj;
        }
    }
}
